import java.util.Scanner;

/**
 *  字母图形
 */
public class AlphabeticGraphics {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n , m;
        n = sc.nextInt();
        m = sc.nextInt();

        for (int i = 0 ; i < n ; i++){
            for (int j = 0 ; j < m ;j++){
                char a = (char) ((Math.abs(i-j)) + 'A');
                System.out.print(a);
            }
            System.out.println();
        }
    }
}
